price_str = input("苹果的单价: ")
weight_str = input("苹果的重量：")
#两个字符串不能直接用乘法
#money = price_str * weight_str

price = float(price_str)
weight = float(weight_str)
money = price * weight
print(money)
